home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5784 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  40 lines

  1. Path: upsnews.ups.com!newsadm
  2. From: Jin Yang <air1jxy@orhp.air.ups.com>
  3. Newsgroups: comp.lang.c++,comp.sys.hp.hpux
  4. Subject: Problem on using STL
  5. Date: 6 Feb 1996 21:00:44 GMT
  6. Organization: United Parcel Service Airline
  7. Message-ID: <4f8fht$t21@upsnews.ups.com>
  8. NNTP-Posting-Host: 153.2.131.26
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1 (X11; U; HP-UX A.09.05 9000/735)
  13. X-URL: news:comp.lang.c++/94652-94752
  14.  
  15. We have a CFront 3.01 based C++ compiler (on HPUX). When we try to use
  16. STL, we get compiler error. For example, the following simple code:
  17.  
  18. #include <algo.h>
  19. #include <vector.h>
  20.  
  21. int main()
  22. {
  23.    vector<int> v;
  24.    return 0;
  25. }
  26.  
  27. will generate error like:
  28.  
  29. CC: "../include/function.h", line 130: error: template unary_function  argument
  30. mismatch, the template formal: Arg required a type actual parameter (1782)
  31.  
  32. Our compiler version is:
  33.  
  34.         REV: 950207.141700, 9000/715 HP-UX A.09.03 masonbld@hpmason1
  35. Can anyone out there offer us help on this. Thanks in advance.
  36.  
  37. Jin Yang
  38. air1jxy@orhp.air.ups.com
  39.  
  40.